import request from "@/utils/request";
// 登录
export const login = async (username, password) => {
  const response = await request.post("/login", {
    username,
    password,
  });
  return response.data;
};
// 注册
export function register(data) {
  return request({
    url: "/register",
    method: "post",
    data: data,
  });
}
